package cn.xutingyin.mycat.service.impl;

import cn.xutingyin.mycat.dao.OrdersMapper;
import cn.xutingyin.mycat.entity.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 订单操作实现类
 * @Author: tingyin.xu
 * @CreateDate: 2021/11/23 14:50
 */
@Service
public class OrdersServiceImpl implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> getList() {
        return ordersMapper.getList();
    }

    @Override
    public int save(Orders orders) {
        return ordersMapper.insert(orders);
    }
}


